package com.cskaoyan.th58.service;

import com.cskaoyan.th58.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author Macro_Ray
 * @since 2024/5/12 下午11:49
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired  // 表明需要从容器中取出符合类型的数据对象
    @Qualifier("userMapperImpl2")
    UserMapper userMapper;

    // 下面这种方法有点繁琐
    // @Autowired
    // public void setUserMapper(@Qualifier("userMapperImpl2") UserMapper userMapper) {
    //     this.userMapper = userMapper;
    // }
}
